using System;
using System.Collections;
using System.Collections.Generic;
using Microsoft.MediaCenter.Hosting;
using Microsoft.MediaCenter.UI;

namespace McmlSamples
{
    public class Program : IAddInModule, IAddInEntryPoint
    {
        public void Initialize(Dictionary<string, object> appInfo, Dictionary<string, object> entryPointInfo)
        {
        }

        public void Uninitialize()
        {
        }

        public void Launch(AddInHost host)
        {
            s_session = new HistoryOrientedPageSession();
            Dictionary<string, object> properties = new Dictionary<string, object>();
            properties.Add("Model", new Model());
            s_session.GoToPage("resx://McmlSamples/McmlSamples.Resources/Default", properties);
        }

        private static HistoryOrientedPageSession s_session;
    }
}

